﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace BookingSystemModel
{
    [DataContract]
    public class Phone
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public Boolean IsPrimary { get; set; }

        [DataMember]
        public int Extension { get; set; }

        [DataMember]
        public int CountryCode { get; set; }

        [DataMember]
        public int AreaCode { get; set; }

        [DataMember]
        public int Number { get; set; }

        public Phone(int _id, Boolean _IsPrimary, int _ext, int _cc, int _ac, int _n)
        {
            this.Id = _id;
            this.IsPrimary = _IsPrimary;
            this.Extension = _ext;
            this.CountryCode = _cc;
            this.AreaCode = _ac;
            this.Number = _n;
        }

    }
}